import request from '@/utils/request'

// 新增当前登录会员车辆
export const addCurrentMemberCarService = (carAddDTO) => {
  return request.post('/member/car/add', carAddDTO)
}

// 查询当前登录会员所有车辆
export const listMemberCarService = () => {
  return request.get('/member/car/list')
}

// 修改当前登录会员车辆信息
export const updateCurrentMemberCarService = (carUpdateDTO) => {
  return request.put('/member/car', carUpdateDTO)
}

// 删除当前登录会员车辆
export const deleteCurrentMemberCarService = (id) => {
  return request.delete(`/member/car/${id}`)
}
